package cn.com.thingo.hyintelligent.ui.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import com.google.gson.Gson;

import cn.com.thingo.hyintelligent.R;
import cn.com.thingo.hyintelligent.model.bean.EzDeviceAuthorizationListBean;
import cn.com.thingo.hyintelligent.model.bean.PermissionJsonBean;

public class EzDeviceAuthorizationAdapter extends BaseQuickAdapter<EzDeviceAuthorizationListBean, BaseViewHolder> {


    public EzDeviceAuthorizationAdapter() {
        super(R.layout.item_expandable_lv1);
    }


    @Override
    protected void convert(BaseViewHolder helper, EzDeviceAuthorizationListBean item) {
        helper.setText(R.id.item_user_name, "被授权人:" + item.getTo_tel());
        String deviceSerial = item.getDev_sn();
        helper.setText(R.id.item_device_name, deviceSerial);
        helper.addOnClickListener(R.id.item_device_delete);
    }
}
